/**
 * Copyright (C) 2014 xspace app Project.
 */
package com.xspace.android.imcommon.entity;

import java.io.Serializable;
import java.util.HashMap;

/**
 * @ClassName: package-info
 * @author:mawen
 * @Date�?014-2-21
 * @version V1.0.0
 * @Description: 推�?消息详情
 */
public class PushMsg implements Serializable {
	public int getIsRead() {
		return isRead;
	}

	public void setIsRead(int isRead) {
		this.isRead = isRead;
	}

	private static final long serialVersionUID = 8042317157714267699L;
	
	private int _id;
	/****
	 * 是否读取 0已读 1未读取
	 */
	private int isRead;
	// 推�?平台�?
	private String mPlatform;
	// 实际推�?用户ID
	private String mPushUserID;
	// 实际推�?用户名称
	private String mPushUserName;
	// 标题
	private String mTitle;
	// 消息体类�?
	private String mMsgBodyType;
	// 消息体类型图�?
	private String mMsgBodyTypeLogo;
	// 内容
	private String mContent;
	// 推�?时间
	private String mPushTime;
	// 插入时间
	private String mInsertTime;
	// 推�?消息的代�?jid全拼
	private String mPushAgent;
	// 推�?消息id
	private String mMsgid;
	// 类型
	private String mType;
	
	private String channelName="";
	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	// 存储扩展字段
	private HashMap<String, String> mExHM = new HashMap<String, String>();

	/**
	 * @Description: TODO
	 * @param
	 * @return
	 * @throws
	 */
	public PushMsg() {
	}

	/**
	 * 
	 * @Description:
	 * @param @param _id
	 * @param @param mPlatform 推�?平台�?
	 * @param @param mPushUserID 实际推�?用户ID
	 * @param @param mPushUserName 实际推�?用户名称
	 * @param @param mTitle 标题
	 * @param @param mMsgBodyType 消息体类�?
	 * @param @param mMsgBodyTypeLogo 消息体类型图�?
	 * @param @param mContent 内容
	 * @param @param mPushTime 推�?时间
	 * @param @param mInsertTime 插入时间
	 * @param @param mPushAgent 推�?消息的代�?jid全拼
	 * @param @param mMsgid 推�?消息id
	 * @return
	 * @throws
	 */
	public PushMsg(int _id, String mPlatform, String mPushUserID,
			String mPushUserName, String mTitle, String mMsgBodyType,
			String mMsgBodyTypeLogo, String mContent, String mPushTime,
			String mInsertTime, String mPushAgent, String mMsgid,String mType,String channelName) {
		this._id = _id;
		this.mPlatform = mPlatform;
		this.mPushUserID = mPushUserID;
		this.mPushUserName = mPushUserName;
		this.mTitle = mTitle;
		this.mMsgBodyType = mMsgBodyType;
		this.mMsgBodyTypeLogo = mMsgBodyTypeLogo;
		this.mContent = mContent;
		this.mPushTime = mPushTime;
		this.mInsertTime = mInsertTime;
		this.mPushAgent = mPushAgent;
		this.mMsgid = mMsgid;
		this.mType=mType;
		this.channelName=channelName;
		System.out.println("--------------------channelName:"+channelName);
	}

	public int get_id() {
		return _id;
	}

	public void set_id(int _id) {
		this._id = _id;
	}

	/**
	 * 
	 * @Description: 标题
	 * @param @return
	 * @return
	 * @throws
	 */
	public String getmTitle() {
		return mTitle;
	}

	/**
	 * 
	 * @Description: 推�?平台�?
	 * @param @param mTitle
	 * @return
	 * @throws
	 */
	public void setmPlatform(String mPlatform) {
		this.mPlatform = mPlatform;
	}

	/**
	 * 
	 * @Description: 推�?平台�?
	 * @param @param mTitle
	 * @return
	 * @throws
	 */
	public String getmPlatform() {
		return mPlatform;
	}

	/**
	 * @Description: 实际推�?用户ID
	 * @param @param mTitle
	 * @return
	 * @throws
	 */
	public void setmPushUserID(String mPushUserID) {
		this.mPushUserID = mPushUserID;
	}

	/**
	 * @Description: 实际推�?用户ID
	 * @param @param mTitle
	 * @return
	 * @throws
	 */
	public String getmPushUserID() {
		return mPushUserID;
	}

	/**
	 * @Description: 实际推�?用户名称
	 * @param @param mTitle
	 * @return
	 * @throws
	 */
	public void setmPushUserName(String mPushUserName) {
		this.mPushUserName = mPushUserName;
	}

	/**
	 * @Description: 实际推�?用户名称
	 * @param @param mTitle
	 * @return
	 * @throws
	 */
	public String getmPushUserName() {
		return mPushUserName;
	}

	/**
	 * 
	 * @Description: 标题
	 * @param @param mTitle
	 * @return
	 * @throws
	 */
	public void setmTitle(String mTitle) {
		this.mTitle = mTitle;
	}

	/**
	 * 
	 * @Description: 消息体类�?
	 * @param @param mMsgBodyType
	 * @return
	 * @throws
	 */
	public void setmMsgBodyType(String mMsgBodyType) {
		this.mMsgBodyType = mMsgBodyType;
	}

	/**
	 * 
	 * @Description: 消息体类�?
	 * @param @return
	 * @return
	 * @throws
	 */
	public String getmMsgBodyType() {
		return mMsgBodyType;
	}

	/**
	 * 
	 * @Description: 消息体类型图�?
	 * @param @param mMsgBodyTypeLogo
	 * @return
	 * @throws
	 */
	public void setmMsgBodyTypeLogo(String mMsgBodyTypeLogo) {
		this.mMsgBodyTypeLogo = mMsgBodyTypeLogo;
	}

	/**
	 * 
	 * @Description: 消息体类型图�?
	 * @param @return
	 * @return
	 * @throws
	 */
	public String getmMsgBodyTypeLogo() {
		return mMsgBodyTypeLogo;
	}

	/**
	 * 
	 * @Description: 内容
	 * @param @return
	 * @return
	 * @throws
	 */
	public String getmContent() {
		return mContent;
	}

	/**
	 * 
	 * @Description: 内容
	 * @param @param mContent
	 * @return
	 * @throws
	 */
	public void setmContent(String mContent) {
		this.mContent = mContent;
	}

	/**
	 * 
	 * @Description: 推�?时间
	 * @param @return
	 * @return
	 * @throws
	 */
	public String getmPushTime() {
		return mPushTime;
	}

	/**
	 * 
	 * @Description: 推�?时间
	 * @param @param mPushTime
	 * @return
	 * @throws
	 */
	public void setmPushTime(String mPushTime) {
		this.mPushTime = mPushTime;
	}

	/**
	 * 
	 * @Description: 插入时间
	 * @param @return
	 * @return
	 * @throws
	 */
	public String getmInsertTime() {
		return mInsertTime;
	}

	/**
	 * 
	 * @Description: 插入时间
	 * @param @param mInsertTime
	 * @return
	 * @throws
	 */
	public void setmInsertTime(String mInsertTime) {
		this.mInsertTime = mInsertTime;
	}

	/**
	 * 
	 * @Description: 推�?消息的代�?jid全拼
	 * @param @return
	 * @return
	 * @throws
	 */
	public String getmPushAgent() {
		return mPushAgent;
	}

	public String getmType() {
		return mType;
	}

	public void setmType(String mType) {
		this.mType = mType;
	}

	/**
	 * 
	 * @Description: 推�?消息的代�?jid全拼
	 * @param @param mPushAgent
	 * @return
	 * @throws
	 */
	public void setmPushAgent(String mPushAgent) {
		this.mPushAgent = mPushAgent;
	}

	/**
	 * 
	 * @Description: 推�?消息id
	 * @param @return
	 * @return
	 * @throws
	 */
	public String getmMsgid() {
		return mMsgid;
	}

	/**
	 * 
	 * @Description: 推�?消息id
	 * @param @param mMsgid
	 * @return
	 * @throws
	 */
	public void setmMsgid(String mMsgid) {
		this.mMsgid = mMsgid;
	}

	/**
	 * 
	 * @Description: 存储扩展字段
	 * @param @param key
	 * @param @param value
	 * @return
	 * @throws
	 */
	public void put(String key, String value) {
		mExHM.put(key, value);
	}

	/**
	 * 
	 * @Description: 获取存储�?
	 * @param @param key
	 * @param @return
	 * @return
	 * @throws
	 */
	public String getValue(String key) {
		return mExHM.get(key);
	}
}
